type int = number;
//class MathUitl
    
    export  class MathUitl
    {
       

        public static getRadiansByPoint(arg1: Object /* flash.geom.Point */, arg2: Object /* flash.geom.Point */): number
        {
            return Math.atan2(arg2.y - arg1.y, arg2.x - arg1.x);
        }

        public static getRadiansByXY(arg1: int, arg2: int, arg3: int, arg4: int): number
        {
            return Math.atan2(arg4 - arg2, arg3 - arg1);
        }

        public static getRadians(arg1: number): number
        {
            return arg1 * MathUitl.ONE_ANGLE;
        }

        public static getAngle(arg1: number): number
        {
            return arg1 * MathUitl.ONE_RADIANS;
        }

        public static getDistance(arg1: number, arg2: number, arg3: number, arg4: number): number
        {
            var loc1=arg2 - arg1;
            var loc2=arg4 - arg3;
            return Math.sqrt(loc1 * loc1 + loc2 * loc2);
        }

        public static random(arg1: int, arg2: int): int
        {
            var loc1=arg2 - arg1;
            return Math.round(Math.random() * loc1) + arg1;
        }

        public static getSign(arg1: number): int
        {
            if (arg1 > 0) 
            {
                return 1;
            }
            if (arg1 < 0) 
            {
                return -1;
            }
            return 0;
        }

        public static /* const */ONE_RADIANS: number=180 / Math.PI;

        public static /* const */ONE_ANGLE: number=Math.PI / 180;
    }
